<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('index');
});
Route::group(['middleware'=>'adminlogin'],function(){
//首页
Route::controller('/admin/','UserController');
//用户页
Route::controller('/admin/uadd','UaddController');
//分类页
Route::controller('/admin/cates','CatesController');
//商品页
Route::controller('/admin/goods','GoodsController');
//管理员页
Route::controller('/admin/aduser','AduserController');
});
//登录页面
Route::controller('/admin/login','LoginController');
//邮箱验证
Route::controller('/seedmail','LoginController');




